import Home from '@/pages/home/Home'
import StateTransition from '@/pages/process/StateTransition'
import ProducerConsumer from '@/pages/process/ProducerConsumer'
import Scheduler from '@/pages/process/Scheduler'

// 2. 定义一些路由
// 每个路由都需要映射到一个组件。
// 我们后面再讨论嵌套路由。
const routes = [
  { path: '/', component: Home },
  { path: '/process/state-transition', component: StateTransition },
  { path: '/process/producer-consumer', component: ProducerConsumer },
  { path: '/process/scheduler', component: Scheduler },
]

export default routes
